<!-- FORM -->
	<form name="reg" method="post" onsubmit="return verify()" action="">
		<input type="text" id="firstname" name="firstname" placeholder="First name" required="required" maxlength=32>
		<input type="text" id="middlename" name="middlename" placeholder="Middle name" required="required" maxlength=32>
		<input type="text" id="lastname" name="lastname" placeholder="Last name" required="required" maxlength=32>
		<label for="sex">Sex: 
			<select id="sex" name="sex">
				<option value="M">Male</option>
				<option value="F">Female</option>
				<option Value="O">Other</option>
			</select>
		</label>
		
		<!-- ***************************** -->
		<input type="text" id="birthday" name="birthday" placeholder="Birthday"> 
		<!-- gusto nyo date nalang ilagay dito imbes text? para di na tayo mahirapan sa format. o mas maganda ba tong text? -->
		<!-- ***************************** -->
		
		<label>
			<select id="accounttype" name="accounttype" onChange="checkSelected()">
				<option value=""></option>	<!-- i-catch nalang natin to sa form validation -->
				<option value="student">Student</option>
				<option value="adminStaff" >Administrative staff</option>
				<option value="instructor">Instructor</option>
			</select>
		</label>

		<!--View this when Student is selected-->
		<div id="divStudent">
			<input type="text" id="homeAddress" name="homeAddress" placeholder="Home address" maxlength=64>
			<input type="text" id="collegeAddress" name="collegeAddress" placeholder="College Address" maxlength=64>
			<input type="text" id="regdAdviser" name="regdAdviser" placeholder="Registration Adviser" maxlength=64>
			<input type="text" id="SPAdviser" name="SPAdviser" placeholder="SP Adviser" maxlength=64>
			<label for="curriculum">
				<select id="curriculum" name="curriculum">
					<?php
						$string = array("testCurriculum","testCurriculum2");
						foreach($string as $str){
							echo "<option value=\"". $str ."\">".$str."</option>";
						}
					?>
				</select>
			</label>
		</div>
		
		<!--View this when Administrative staff is selected-->
		<div id="divAdminStaff">
		</div>
		
		<!--View this when Instructor is selected-->
		<div id="divInstructor">
			<input type="text" id="facultyRoom" name="facultyRoom" placeholder="Faculty Room">
			<label for="designation"> Designation: 
				<select id="designation" name="designation">
					<?php
						$string = array("Instructor", "Professor", "Associate Professor");
						foreach($string as $x){
							echo "<option value=\"".strtolower($x)."\">".$x."</option>";
						}
					?>
				</select>
			</label>
			<input type="text" id="rank" name="rank" placeholder="Rank">
		</div>
		<input type="hidden" value="student" name="chosentype">
		<input type="submit" value="Register" name="register" id="register">
	</form>
<!-- END FORM-->
		

		